package com.ruoyi.delivery.service.impl;

import java.util.List;

import com.ruoyi.domain.GarbageRecyclingDetailOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.delivery.mapper.GarbageRecyclingDetailOrderMapper;
import com.ruoyi.delivery.service.IGarbageRecyclingDetailOrderService;

/**
 * 垃圾回收详情订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-30
 */
@Service
public class GarbageRecyclingDetailOrderServiceImpl implements IGarbageRecyclingDetailOrderService 
{
    @Autowired
    private GarbageRecyclingDetailOrderMapper garbageRecyclingDetailOrderMapper;

    /**
     * 查询垃圾回收详情订单
     * 
     * @param detailorderid 垃圾回收详情订单ID
     * @return 垃圾回收详情订单
     */
    @Override
    public GarbageRecyclingDetailOrder selectGarbageRecyclingDetailOrderById(Long detailorderid)
    {
        return garbageRecyclingDetailOrderMapper.selectGarbageRecyclingDetailOrderById(detailorderid);
    }

    /**
     * 查询垃圾回收详情订单列表
     * 
     * @param garbageRecyclingDetailOrder 垃圾回收详情订单
     * @return 垃圾回收详情订单
     */
    @Override
    public List<GarbageRecyclingDetailOrder> selectGarbageRecyclingDetailOrderList(GarbageRecyclingDetailOrder garbageRecyclingDetailOrder)
    {
        return garbageRecyclingDetailOrderMapper.selectGarbageRecyclingDetailOrderList(garbageRecyclingDetailOrder);
    }

    /**
     * 新增垃圾回收详情订单
     * 
     * @param garbageRecyclingDetailOrder 垃圾回收详情订单
     * @return 结果
     */
    @Override
    public int insertGarbageRecyclingDetailOrder(GarbageRecyclingDetailOrder garbageRecyclingDetailOrder)
    {
        return garbageRecyclingDetailOrderMapper.insertGarbageRecyclingDetailOrder(garbageRecyclingDetailOrder);
    }

    /**
     * 修改垃圾回收详情订单
     * 
     * @param garbageRecyclingDetailOrder 垃圾回收详情订单
     * @return 结果
     */
    @Override
    public int updateGarbageRecyclingDetailOrder(GarbageRecyclingDetailOrder garbageRecyclingDetailOrder)
    {
        return garbageRecyclingDetailOrderMapper.updateGarbageRecyclingDetailOrder(garbageRecyclingDetailOrder);
    }

    /**
     * 批量删除垃圾回收详情订单
     * 
     * @param detailorderids 需要删除的垃圾回收详情订单ID
     * @return 结果
     */
    @Override
    public int deleteGarbageRecyclingDetailOrderByIds(Long[] detailorderids)
    {
        return garbageRecyclingDetailOrderMapper.deleteGarbageRecyclingDetailOrderByIds(detailorderids);
    }

    /**
     * 删除垃圾回收详情订单信息
     * 
     * @param detailorderid 垃圾回收详情订单ID
     * @return 结果
     */
    @Override
    public int deleteGarbageRecyclingDetailOrderById(Long detailorderid)
    {
        return garbageRecyclingDetailOrderMapper.deleteGarbageRecyclingDetailOrderById(detailorderid);
    }
}
